<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property integer $id
 * @property integer $fac_id
 * @property string $reward
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\Facilitator $facilitator
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereFacId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereReward($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders whereUpdatedAt($value)
 */
class Orders extends Model
{
    protected $table = 'orders' ;
    use SoftDeletes;

    public function facilitator(){
        return $this->belongsTo('App\Facilitator','fac_id');
    }
}